class TextareaField {
    initOptions(field) {
        field.dataAttribute = {
            rows: "1",
        };
    }
    getOptionsHtml(field) {
        let html = `
          <div class="form-group">
          <input type="number" id="fieldRows"  style="width:100px" value="${field.dataAttribute?.rows || "1"}" /> 
          <label style="width: 100px; float: inline-start;">行数</label>
          </div>
        `;
        return html;
    }
    collectOptionSettings(field) {
        field.dataAttribute.rows = document.getElementById('fieldRows').value || "1";
    }
}
export default new TextareaField;